#一, PHP variable definition: Variables are used to store values, such as numbers, text strings or arrays, V: string/integer/double/array/object
Naming rules:
1. The variable name of PHP is case-sensitive. 2. The variable name must begin with $3,
a more comprehensive set of PHP tutorials , basic video and some small combat projects, below is the video directoryCD-ROM (i) \php employment Class (I.)CD-ROM (i) \php Technical exchange zone. URLCD-ROM (i) \ "Wisdom Special issue" belongs to it
PHP Boolean data type falsetrue usage introduction. In php, falsetrue is true or false. in php, falsetrue is called a Boolean data type. it is a common data type. for example, conditional judgment is also a Boolean data type, in php, false true
$ In php represents a variable, but how can I know the type of this variable? $ In php represents a variable, but how can I know the type of this variable?
Reply to discussion (solution)
PHP provides six functions (boolean is_int (mixed variable),
The $ in PHP represents a variable, but what is the type of the variable to know?
Reply to discussion (solution)
PHP provides a total of six functions (they are Boolean is_int (mixed variable), Boolean is_float (mixed variable), Boolean is_bool
In programming, many times we need to make a Boolean decision about the variable. But sometimes the result of the procedure is different from what we expected, today we will test the situation of PHP in various situations.
How to tell if a variable
Now the development of the site to use the Smarty framework template, feel very good, better realize the PHP source code and the separation of HTML. Now share some common variables of smarty.
1, smarty_dir SMARTY directory
Locate the full system
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.